import { _Key } from '@/enums'

export const getLanguage = (): Language => {
	return (localStorage.getItem(_Key.Language) ?? navigator.language) as Language
}

export const setLanguage = (language: string): void => {
	localStorage.setItem(_Key.Language, language)
}
